export interface Blog {
    id: number;
    title: string;
    author: string;
    author_id: string;
    tags: string[];
    views: number;
    stars: number;
    created_at: string;
    content: string;
}

export interface BlogsResponse {
    total_count: number;
    blog_count: number;
    blogs: Blog[];      // 可选，匹配count
}

export function defaultBlog(): Blog {
    return {
        id: 0,
        title: '',
        author: '',
        author_id: '',
        tags: [],
        views: 0,
        stars: 0,
        created_at: '',
        content: '',
    };
}